Update guide.md
authorWebTogz <antonin.carette@gmail.com>
Tue, 10 Nov 2015 07:10:06 +0000 (08:10 +0100)
committerWebTogz <antonin.carette@gmail.com>
Tue, 10 Nov 2015 07:10:06 +0000 (08:10 +0100)
Correctness of the previous modification, regarding how to pass arguments via Cargo

src/doc/guide.md

index 31eb139abba12123b0c1c33f5d526193cb8f3e2c..ad7819fa3f9438cecab694f464e2fa6de688f72f 100644 (file)
@@ -92,7 +92,7 @@ class="s1">     Fresh</span> hello_world v0.1.0 (file:///path/to/project/hello_w
 class="s1">   Running</span> `target/debug/hello_world`
 Hello, world!</code></pre>
 
-If you want to pass some arguments to your program, please use `cargo run -- first_argument second_argument`.
+To pass some arguments to your program, you can use `cargo run first_argument second_argument`. If flags are being passed to the command being invoked, please to use `cargo run -- --a_flag -b an_argument`.
 
 You'll now notice a new file, `Cargo.lock`. It contains information about our
 dependencies. Since we don't have any yet, it's not very interesting.